html, body
{
	height: 100%;
	width: 100%;
	margin: 0;
  padding: 0;
}

body 
{
	display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
	background-color: #E5E4E2; /* Platinum gray background */
}

header, main, footer 
{
  flex-shrink: 1;
}

header 
{
	max-width:100%;
	background-color: #4169e1;
	text-align: center;
  padding: 10px 0;
}

header img
{
	max-width: 100%;
	height: auto;
}

header nav ul 
{
  list-style-type: none;
	text-align: center;
}

header nav ul li 
{
  display: inline-block;
  margin-right: 100px;
}

header nav ul li a 
{
  color: #E5E4E2;
  text-decoration: none;
	font-weight: bold;
  font-size: 20px;
}

header nav ul li a:hover 
{
  text-decoration: underline;
}

section
{
	flex-grow: 1;
}

/*Home*/

#roofHeader
{
	max-width: 100%;
	padding: 20px;
	margin: 0px 0px 20px 0px;
  color: #E5E4E2;
	background-image: linear-gradient(rgba(0, 0, 0, 0.527), rgba(0, 0, 0, 0.5)), url(../img/main.jpeg);
	background-repeat: no-repeat;
  text-align: center;
	background-size: cover;
}

#roofHeader h1 
{
  font-size: 3em;
  margin-bottom: 20px;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
}

#roofHeader p 
{
  font-size: 1.5em;
	text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;
  margin-bottom: 20px;
}

#roofSection
{
	display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

#roofTypes
{
	display: flex;
	gap: 20px;
}

.roof 
{
	text-align: center;
}

.roof img 
{
	min-height: 100px;
  width: 100%;
  object-fit: cover;
	padding: 1em;
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.4);
  z-index: -1;
  position: relative;
}

figcaption 
{
  height: 1.2em;
  width: 100%;
  text-align: Center;
  color: #4169e1;
  z-index: 1;
	font-weight: bold;
  font-size: 2em;
}

/*Services Page*/

#servicesSection 
{
	width: 80%;
  margin: auto;
  padding-top: 20px;
}

#servicesSection h1
{
	font-size: 3em;
	text-align: center;
	color: royalblue;
  border-bottom: 2px solid royalblue;
  padding-bottom: 10px;
}

#servicesSection p
{
	text-align: justify;
	padding: 1em 0 1em 0;
	font-size: 1.2em;
}

#services
{
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between items */
}

.service 
{
	flex: 1 1 calc(50% - 20px); /* Flex items take up half the container width minus space for gaps */
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  box-sizing: border-box; /* Include padding in width */
}

.service h2 
{
	text-align: center;
  color: royalblue;
  font-size: 2em;
}

.service p
{
	text-align: justify;
  line-height: 1.6;
  margin: 10px 0;
}

.service h3 
{
  color: royalblue;
  font-size: 1.5em;
  margin-top: 10px;
}

.service ul 
{
  margin-left: 15px ;
}

.service ul li 
{   
	font-size: 1.1em;
  margin: 5px 0;
  padding: 10px;
  border-radius: 4px;
}

.service img
{
	float: left;
	display: block;
	padding: 10px;
	box-sizing: border-box; 
	max-width: 50%;
	max-height: 50%;
	border-radius: 10%;
}

/*About*/

#about 
{
	width: 50%;
  margin: auto;
	align-content: center;
}

#about h2 
{
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  font-size: 2em;
	color: royalblue;
}

#about p 
{
  font-size: 1.2em;
  color: #555;
	text-align: justify;
}

#about ul
 {
  list-style: none;
	list-style-position: inside;
  padding-left: 0;
  margin-bottom: 20px;
}

#about ul li 
{
  font-size: 1.2em;
	text-align: justify;
	padding: 5px;
  color: #555;
}

/*Contact Us*/

#contact
{
	display: flex;
  flex-direction: column;
	justify-content: flex-start;
}

#contact h2
{
	color: royalblue;
	font-size: 2em;
}

.contact-form 
{
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 25px auto;
  align-items: center; /* Center horizontally */	
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea 
{
  width: 95%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
	align: center;
}

.contact-form textarea 
{
  resize: vertical;
  min-height: 150px;
}

.contact-form button 
{
  border: none;
  cursor: pointer;
  font-size: 1em;
  border-radius: 5px;
  transition: background-color 0.3s;
  margin-top: 15px; /* Space above the button if needed */
}

#contact-info
{
	padding: 20px;
	justify-content: center; /* Center vertically */
}

.contact-form button:hover 
{
  background-color: #00468b; /* Darker blue on hover */
}

#quote 
{
	flex: 1;
  display: flex;
  align-items: center;
	justify-content: center;
	padding: 20px;
}

#quote .btn 
{
  display: flex;
	text-decoration: none;
}

button
{
	padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s;
	background-color: royalblue; /* Royal blue button background */
  color: #E5E4E2; /* Platinum text color */
	font-weight: bold;
	font-size: 2em;
}

button:hover 
{
  background-color: #00468b; /* Darker blue on hover */
}

footer 
{
	min-height: 130px;
  background-color: #4169e1; /* Royal blue footer background */
  text-align: center;
}

.footer-social
{
	color: #E5E4E2;
	font-weight: bold;
  font-size: 20px;
}

.footer-social a
{
  text-decoration: none;
}

.footer-social img
{
	display: inline-block;
  margin-right: 25px;
	width: 50px;
  height: 50px;
	text-decoration: none;
	object-fit: fill;
	border: 0.1px solid black;
}

/*Mobile*/
@media (max-width: 768px) 
{
	header
	{
		padding: 5px 10px 0 10px;
	}
	header img
	{
		width: 100%;
	}
  header nav ul li 
	{
		float: none;
		display: inline-block;
		text-align: left;
		margin-right: 15px;
  }
	
	header nav ul li a
	{
		font-size: 15px;
  }

  #roofHeader h1 
	{
    font-size: 2.5em;
  }

  #roofHeader p 
	{
    font-size: 1.2em;
  }

  #roofTypes 
	{
    flex-direction: column;
  }

  .roof img 
	{
    width: 100%;
    height: auto;
  }

  #services 
	{
    flex-direction: column;
  }

  .service 
	{
    flex: 1 1 100%;
  }
	
	#about 
	{
		width: 90%;
	}

  #about h2, #servicesSection h1 
	{
    font-size: 1.8em;
  }

  #about p, #servicesSection p, #about ul li 
	{
    font-size: 1em;
  }

  #contact h2 
	{
    font-size: 1.5em;
  }

  .contact-form button 
	{
    font-size: 1em;
  }

  button 
	{
    font-size: 1.5em;
  }
	
	footer
	{
		min-height: 100px;
	}

  .footer-social 
	{
    font-size: 16px;
  }

  .footer-social img 
	{
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) 
{
	header
	{
		padding: 5px 10px 0 10px;
	}
	header img
	{
		width: 100%;
	}
  header nav ul li 
	{
    margin-bottom: 5px;
  }

  #roofHeader h1 
	{
    font-size: 2em;
  }

  #roofHeader p 
	{
    font-size: 1em;
  }

  #roofTypes 
	{
    flex-direction: column;
  }

  .roof img 
	{
    width: 100%;
    height: auto;
  }

  #services 
	{
    flex-direction: column;
  }

  .service 
	{
    flex: 1 1 100%;
  }
	
	#about 
	{
		width: 90%;
	}

  #about h2, #servicesSection h1 
	{
    font-size: 1.6em;
  }

  #about p, #servicesSection p, #about ul li 
	{
    font-size: 0.9em;
  }

  #contact h2 
	{
    font-size: 1.2em;
  }

  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea 
	{
    font-size: 0.9em;
  }

  .contact-form button 
	{
    font-size: 0.9em;
  }

  button 
	{
    font-size: 1.2em;
  }
	
	footer
	{
		min-height: 100px;
	}

  .footer-social 
	{
    font-size: 14px;
  }

  .footer-social img 
	{
    width: 30px;
    height: 30px;
  }
}
